package cn.lg.soar.system.auth.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 多对多关联模型
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
@ApiModel("用户部门")
public class UserOrgVO {

    @NotEmpty(message = "用户id不能为空")
    private List<Long> userIds;

    @Valid
    private List<UserOrgItemVO> orgs;

}
